package com.example.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.backend.entity.GouWuChe;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface GouWuCheMapper extends BaseMapper<GouWuChe> {
    @Insert("insert into wm_gwc(yhid,sjid,cpl) values(#{yhid},#{sjid},#{cpl})")
    int insertGwc(GouWuChe gouWuChe);
    @Update("update wm_gwc set cpl = #{cpl} where yhid = #{yhid} and sjid = #{sjid}")
    int updateGwc(GouWuChe gouWuChe);
}
